package com.learn.mqq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题库表
 * </p>
 *
 * @author guowenhao
 * @since 2023-12-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yx_paper_question")
public class YxPaperQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目
     */
    @TableField("title")
    private String title;

    /**
     * 选项
     */
    @TableField("options_json")
    private String optionsJson;

    /**
     * 答案
     */
    @TableField("result")
    private String result;

    /**
     * 类型:1=单选题,2=多选题,3=判断题
     */
    @TableField("type")
    private Integer type;

    /**
     * 解析
     */
    @TableField("info")
    private String info;

    /**
     * 图片
     */
    @TableField("image")
    private String image;

    /**
     * 试卷id
     */
    @TableField("paper_id")
    private Integer paperId;


}
